package com.pet.shop.controller.user;

import com.pet.shop.controller.BaseController;
import com.pet.shop.dto.PageDto;
import com.pet.shop.entity.user.UserInfo;
import com.pet.shop.service.IBaseService;
import com.pet.shop.service.user.IUserInfoService;
import com.pet.utils.RequestUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/web/user")
public class UserInfoController extends BaseController<UserInfo> {

    @Autowired
    private IUserInfoService userInfoService;

    @Override
    public IBaseService<UserInfo> getBaseService() {
        return userInfoService;
    }

    @RequestMapping("list")
    public ModelAndView list(HttpServletRequest request){
        return new ModelAndView("manage/userList");
    }
}
